package com.alumni_circle.service.home.impl;

import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.entity.home.Sponsor;
import com.alumni_circle.entity.home.VO.SponsorViewVO;
import com.alumni_circle.mapper.home.SponsorMapper;
import com.alumni_circle.service.home.ISponsorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:50
 */
@Service
public class SponsorServiceImpl extends BaseServiceImpl<SponsorMapper, Sponsor> implements ISponsorService {

    @Resource
    private SponsorMapper sponsorMapper;

    @Override
    public List<SponsorViewVO> selectListSponsor(String count) {
        return sponsorMapper.selectListSponsor(count);
    }

    @Override
    public List<SponsorViewVO> selectMyListSponsor(String id) {
        return sponsorMapper.selectMyListSponsor(id);
    }

    @Override
    public List<SponsorViewVO> searchListSponsor(String search) {
        return sponsorMapper.searchListSponsor(search);
    }

    @Override
    public List<SponsorViewVO> searchMySponsor(String id, String search) {
        return sponsorMapper.searchMySponsor(id,search);
    }
}
